﻿using System;
using System.Collections.Generic;
using System.Text;
using xiaodingmarket_Domain_core.Events;

namespace xiaodingmarket_Domain.Events.Order
{
    public class OrderCreatEvent : Event
    {
        public OrderCreatEvent(Guid seller, DateTime logTime, Guid productid,Guid buyer)
        {
           Id = seller;
            LogTime = logTime;
            Productid = productid;
            Buyer = buyer;
            AggregateId = seller; 
        }

        /// <summary>
        /// 发布者id
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 生成订单时间
        /// </summary>
        public DateTime LogTime { get; set; }
        /// <summary>
        /// 商品或悬赏的唯一标识（做外键？）
        /// </summary>
        public Guid Productid { get; set; }
        /// <summary>
        /// 购买者或者接悬赏的id
        /// </summary>
        public Guid Buyer { get; set; }
    }
}
